// 日志管理
import request from "@/plugins/request";

// 获取用户操作日志
export function userOperateLog(data) {
  return request({
    url: "/platform/operateLog/userOperateLog/getByPage",
    method: "post",
    data,
  });
}

// 清除用户操作日志
export function clearUserOperateLog(data) {
  return request({
    url: "/platform/operateLog/userOperateLog/clearLogByTime",
    method: "post",
    data,
  });
}

// 获取用户登录日志
export function userLoginLog(data) {
  return request({
    url: "/platform/operateLog/userLogin/getByPage",
    method: "post",
    data,
  });
}

// 清除用户登录日志
export function clearUserLoginLog(data) {
  return request({
    url: "/platform/operateLog/userLogin/clearLogByTime",
    method: "post",
    data,
  });
}

// 获取系统访问日志
export function systemAccessLog(data) {
  return request({
    url: "/platform/operateLog/sysAccess/getByPage",
    method: "post",
    data,
  });
}

// 清除系统访问日志
export function clearSystemAccessLog(data) {
  return request({
    url: "/platform/operateLog/sysAccess/clearLogByTime",
    method: "post",
    data,
  });
}

// 获取系统异常日志
export function systemExceptionLog(data) {
  return request({
    url: "/platform/operateLog/sysException/getByPage",
    method: "post",
    data,
  });
}

// 清除系统异常日志
export function clearSystemExceptionLog(data) {
  return request({
    url: "/platform/operateLog/sysException/clearLogByTime",
    method: "post",
    data,
  });
}
